﻿using System.ComponentModel.DataAnnotations;
using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace Models
{
    ///<summary>
    ///
    ///</summary>
    [Tenant("ERP_PROD")]
    [SugarTable("EP_STATUS","ERP_PROD")]
    public partial class Epstatus
    {
           public Epstatus() { }

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           [SugarColumn(IsPrimaryKey=true)]
           public string ProActivKey {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           [SugarColumn(IsPrimaryKey=true)]
           public string EPICOR_SN {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           [StringLength(50, ErrorMessage ="PART_NO长度50" )]
           public string PART_NO {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           [StringLength(23, ErrorMessage ="TEST_TIME长度23" )]
           public DateTime? TEST_TIME {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           [StringLength(50, ErrorMessage ="ROOT_SN长度50" )]
           public string ROOT_SN {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? PROCESS_ID {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           [StringLength(50, ErrorMessage ="TEST_RESULT长度50" )]
           public string TEST_RESULT {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           [StringLength(1000, ErrorMessage ="SCRAP_REASON长度1000" )]
           public string SCRAP_REASON {get;set;}

           /// <summary>
           /// Desc:
           /// Default:N
           /// Nullable:False
           /// </summary>           
           [Required(ErrorMessage ="JobNum必填" )]
           [StringLength(40, ErrorMessage ="JobNum长度40" )]
           public string JobNum {get;set;}

           /// <summary>
           /// Desc:
           /// Default:N
           /// Nullable:False
           /// </summary>           
           [Required(ErrorMessage ="PRODUCTION_LOT_NO必填" )]
           [StringLength(40, ErrorMessage ="PRODUCTION_LOT_NO长度40" )]
           public string PRODUCTION_LOT_NO {get;set;}

           /// <summary>
           /// Desc:
           /// Default:0
           /// Nullable:False
           /// </summary>           
           [Required(ErrorMessage ="OprSeq必填" )]
           public int OprSeq {get;set;}

    }
}
